<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>${user==null?'创建':'编辑'}用户</title>
</head>
<body>
<fieldset>
		<legend>${user == null ? '创建':'编辑' }用户</legend>
		<form action=" ${user == null ? '../user/add':'../user/update'}" method="post">
			<input type="hidden" name="uid" value="${user.uid }">
			<div>
				用户名：<input type="text" name="userName" value="${user.userName }" />
			</div>
			<div>
				性别： <input type="radio"
					<c:if test="${user == null || user.gender == '男' }">checked</c:if>
					name="gender" value="男" />男 <input type="radio"
					<c:if test="${user.gender == '女' }">checked</c:if> name="gender"
					value="女" />女
			</div>
			<c:if test="${ error != null}">
				<div class="error">${error}</div>
			</c:if>
			<button>提交</button>
		</form>
	</fieldset>
</body>
</html>